import java.util.Random;
/**
 * @author terratack
 *
 */
public class Bot {
	Bot(){
	}
	public void change_Card(int j){
		int y = 0,icard;
		Random gen = new Random();
		Random gen1 = new Random();
		int int_cards_Amount = gen.nextInt(3);
		int[] help = new int[4];
		for(int i = 0; i < 4; i++) help[i] = -1;
		if(int_cards_Amount > 0){
			for(int i = 0; i < int_cards_Amount; i++){
				icard = gen1.nextInt(4);
				if(help[0] == icard || help[1] == icard || help[2] == icard || help[3] == icard){
					i--;
				}
				else{
					help[y] = icard;
					y++;
					Poker.player[j].cards_in_hand[icard] = Poker.deck.game_deck[Poker.table.help];
					Poker.table.help++;
				}
			}
		}

	}
}
